﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EcoTourEduca.BingYourMaps
{
    public static class HtmlHelpers
    {
        public static HtmlString ToInvariantCultureString(this HtmlHelper html, float number)
        {
            return new HtmlString(number.ToInvariantCultureString());
        }

        public static String ToInvariantCultureString(this float number)
        {
            return number.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat);
        }
    }
}